import axios from 'axios'
// import config from '../config.json'

// axios.defaults.baseURL = config.baseURL

// axios.interceptors.request.use((conf) => {
//   const { localStorage } = window
//   if (localStorage.token) {
//     conf.headers.authorization = `token ${localStorage.token}`
//   }
//   return conf
// })

// axios.interceptors.response.use((res) => {})

export default {
  GET_GOODS_BY_SHOPID({ shopId }) {
    return axios.get(`/shop/${shopId}/goods`)
  },
  GET_SHOP_INFO({ shopId }) {
    return axios.get(`/shop/${shopId}/info`)
  },
  GET_HOT_SHOPS() {
    return axios.get('/shop/hot')
  }
}
